Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove HandleReadModuleError #2585

Merged
merged 7 commits into from
Nov 15, 2023

Conversation

saquibmian
Copy link
Contributor

The logic is instead inlined because it's a core decision that Syncer should make.

The logic is instead inlined because it's a core decision that Syncer should make.
// If this func returns `LookbackDecisionCodeStop` for `ReadModuleErrorCodeModuleNotFound`, the
// syncer will stop looking when reaching the commit `u`, will select `v` as the start sync point,
// and the synced commits into the BSR will be [x, y, z].
HandleReadModuleError(err *ReadModuleError) LookbackDecisionCode
// InvalidBSRSyncPoint is invoked by Syncer upon encountering a module's branch sync point that is
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How is this error different than the ones when reading a module? Do you see this being customizable by some CLI flag?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nah I want to kill this, too. Initially all of this came because we were logging a warning in the CLI and the suggestion was made that Syncer shouldn't do this, but this is a core part of Syncer now.

private/buf/bufsync/syncer.go Show resolved Hide resolved
private/buf/bufsync/syncer.go Show resolved Hide resolved
Copy link
Member

@unmultimedio unmultimedio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only one blocker comment

private/buf/bufsync/syncer.go Outdated Show resolved Hide resolved
private/buf/bufsync/syncer.go Outdated Show resolved Hide resolved
private/buf/bufsync/syncer.go Outdated Show resolved Hide resolved
@saquibmian saquibmian merged commit 69c8e54 into main Nov 15, 2023
7 checks passed
@saquibmian saquibmian deleted the saquib/bsr-3037-remove-handlereadmoduleerror branch November 15, 2023 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants